function setTitle(titleText) 

global PLOT_FOR_WEB PLOT_HEIGHT PLOT_WIDTH

if(PLOT_FOR_WEB)
    text(PLOT_WIDTH * 0.425, PLOT_HEIGHT * 0.26, titleText, ... 
         'FontSize', 12, 'HorizontalAlignment', 'center', 'Interpreter', 'none',...
         'Units', 'pixels');
else
    text(12.5, 5.5, titleText, ... 
     'FontSize', 12, 'HorizontalAlignment', 'center', 'Interpreter', 'none',...
     'Units', 'centimeters');
end